/**
 * 
 */
package com.maohi.software.tupuna.ui;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import com.google.inject.Inject;
import com.google.inject.name.Named;
import com.maohi.software.tupuna.constants.UIConstant;

/**
 * @author heifara
 * 
 */
public class MainUI extends JFrame {

	private static final long serialVersionUID = 1L;

	@Inject
	@Named(UIConstant.HEADER_UI)
	private JPanel headerUi;

	@Inject
	@Named(UIConstant.CONTENT_UI)
	private JTabbedPane contentUi;

	public MainUI() {
	}

	public JTabbedPane getContentUi() {
		return contentUi;
	}

	public JPanel getHeaderUi() {
		return headerUi;
	}

	@Inject
	protected void initUI() {
		this.setSize(new Dimension(800, 600));
		this.setLocationRelativeTo(null);

		this.setLayout(new BorderLayout(10, 10));

		this.add(headerUi, BorderLayout.NORTH);
		this.add(contentUi, BorderLayout.CENTER);
	}

}
